#pragma once

namespace MCCommon
{

class IPeerRecvListener
{
public:    
    /**
     * Destructor.
     * 
     */
    virtual ~IPeerRecvListener(){}

    /**
     * This function will be called once a peer receives data.
     *
     * @param pBuf    The Buffer.
     * @param lenBuf  The length of the buffer.
     */
    virtual void OnReceiveData
    (
        const char* pBuf,
        int lenBuf
    ) = 0;
};

}// end of namespace MCCommon.